
import React from 'react'
import './index.scss'

export default function FourGrid({data,recordHistory}) {
  return (
    <div className='fourgrid'>
        {
            data.map(item=><a key={item.id} href={item.link} onClick={()=>recordHistory(item.id)} target='_blank'><img src={item.img}/><p>{item.text}</p></a>)
        }
    </div>
  )
}
